A method of object detection with few samples based on two-stage voting was proposed to detect objects using template matching method while there are only a few samples. Firstly, the voting space was constructed off-line by using probability model through several samples. Then, a method of two-stage voting was used to detect objects in testing images. In the first stage, the components of object from testing image were detected, and the positions of components in query image were saved. In the second stage, the similarity of the object was computed integrally based on the components. According to the theory analysis and experimental results, the proposed method obtains lower computation complexity and higher precisions than previous works.